package com.weds.edpf.core.util;

import com.weds.bean.jwt.JwtUtils;

import javax.servlet.http.HttpServletRequest;

public class UserUtils{

    /**
     * 当前登录账号
     * @return
     */
    public static String currentGly(HttpServletRequest request){
        String gly = null;
        if (JwtUtils.getJwtData(request) != null) {
            gly = JwtUtils.getJwtData(request).getString("userSerial");
        }
        return gly;
    }

}
